import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'message-';

export default {
    path: '/message',
    name: 'list',
    redirect: {
        name: `${pre}list`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'list',
            name: `${pre}list`,
            meta: {
                ...meta,
                title: '消息列表',
                closable: false
            },
            component: () => import('@/pages/message/list')
        }, {
            path: 'msgsettings',
            name: `${pre}msgsettings`,
            meta: {
                ...meta,
                title: '消息设置',
                closable: false
            },
            component: () => import('@/pages/message/list/msgsettings')
        }, {
            path: 'messageDetail',
            name: `${pre}messageDetail`,
            meta: {
                ...meta,
                title: '消息详情',
                closable: false
            },
            component: () => import('@/pages/message/list/messageDetail')
        }
    ]
};
